package com.ruoyi.system.service.aggregation.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.aggregation.PointMapper;
import com.ruoyi.system.domain.aggregation.Point;
import com.ruoyi.system.service.aggregation.IPointService;

/**
 * 分佣明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-13
 */
@Service
public class PointServiceImpl implements IPointService 
{
    @Autowired
    private PointMapper pointMapper;

    /**
     * 查询分佣明细
     * 
     * @param id 分佣明细主键
     * @return 分佣明细
     */
    @Override
    public Point selectPointById(Long id)
    {
        return pointMapper.selectPointById(id);
    }

    /**
     * 查询分佣明细列表
     * 
     * @param point 分佣明细
     * @return 分佣明细
     */
    @Override
    public List<Point> selectPointList(Point point)
    {
        return pointMapper.selectPointList(point);
    }

    /**
     * 新增分佣明细
     * 
     * @param point 分佣明细
     * @return 结果
     */
    @Override
    public int insertPoint(Point point)
    {
        return pointMapper.insertPoint(point);
    }

    /**
     * 删除分佣明细
     * 
     * @param id 分佣明细主键
     * @return 结果
     */
    @Override
    public int deletePointById(Long id)
    {
        return pointMapper.deletePointById(id);
    }
}

